package com.yf.exam.modules.trainingarchives.evaluation.enums;

import com.yf.exam.common.enums.ResultCodeEnum;

public enum EvaluationTypeEnum {

    TRAINING(1,"培训满意度调查模板"),
    TEACHER(2,"教师满意度调查模板");

    public int code;
    public String desc;


    EvaluationTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public ResultCodeEnum getByCode(int codeVal) {
        for (ResultCodeEnum resultCodeEnum : ResultCodeEnum.values()) {
            if (resultCodeEnum.code == codeVal) {
                return resultCodeEnum;
            }
        }
        return null;
    }
}
